package cn.net.gemai.springboot_mybaitsplus.mapper;

import cn.net.gemai.springboot_mybaitsplus.entity.Person;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Mapper
//可以在每个mapper接口文件单独配置@Mapper 或者在启动类中添加@MapperScan(basePackages = "cn.net.gemai.springboot_mybatisplus.mapper")
@Component
//直接继承 BaseMapper，这是 mybatis-plus 封装好的类.可以省去xml的编写，也可以在xml中自定义sql
public interface PersonMapper extends BaseMapper<Person> {
}

